package testCases;
import static org.junit.Assert.*;

import java.util.Calendar;
import java.util.GregorianCalendar;

import mainPackage.Dog;
import mainPackage.Handler;
import mainPackage.iHandler;

import org.junit.Test;

public class DogTest {

	@Test
	public void testGetHandlerFirstAndLastName() {
		
		iHandler handler = new Handler("Marcel","Frehe",new GregorianCalendar(1986,Calendar.APRIL,9));
		
		//Assertions
		assertEquals("Marcel", handler.getFirstName());
		assertEquals("Frehe", handler.getLastName());
	}
	
	@Test
	public void testGetDogName() {
		
		//Create Handler
		Handler handler = new Handler("Marcel","Frehe",new GregorianCalendar(1986,Calendar.APRIL,9));
		
		//Create Dog
		Dog dog = new Dog("Jack", handler,"2765646516543", new GregorianCalendar(2011,Calendar.MAY,3), new GregorianCalendar(2014,Calendar.AUGUST,20,0,0,0));
		
		//Assertions
		//dogName
		assertEquals("Jack", dog.getName());
	}
	
	@Test
	public void testGetDogChipNumber() {
		
		//Create Handler
		Handler handler = new Handler("Marcel","Frehe",new GregorianCalendar(1986,Calendar.APRIL,9));
		
		//Create Dog
		Dog dog = new Dog("Jack", handler,"2765646516543", new GregorianCalendar(2011,Calendar.MAY,3), new GregorianCalendar(2014,Calendar.AUGUST,20,0,0,0));
		
		//Assertions
		//dogChipNumber
		assertEquals("2765646516543",dog.getChipNumber());
		
		
	}
}
